﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BlueCrest.ConfigManagement.Storage.DB.Data;
using FluentNHibernate.Mapping;

namespace BlueCrest.ConfigManagement.Storage.DB.ClassMaps.Flat
{
    public class ConfigEntryEntityMap : ClassMap<ConfigPathEntryEntity>
    {
        public ConfigEntryEntityMap()
        {
            Id(x => x.EntryId);

            Map(x => x.EntryName).Column("EntryName");
            Map(x => x.EntryPathId).Column("EntryPathId");
            Map(x => x.ScopeId).Column("ScopeId");
            Map(x => x.EntryType).Column("EntryType");
            Map(x => x.EntryValue).Column("EntryValue");

            Table("dbo.tblConfigEntry");

        }
    }
}
